#ifndef SENDER_H
#define SENDER_H

#include <QDialog>
#include <string>

class QDialogButtonBox;
class QLabel;
class QPushButton;
class QTimer;
class QUdpSocket;

class Sender : public QDialog {
    Q_OBJECT
    public:
        Sender(QWidget *parent = 0);
        void sendMessage(QString actionToSend);
    private:
        int messageNo;
        QDialogButtonBox* buttonBox;
        QPushButton*      quitButton;
        QUdpSocket*       udpSocket;
        QLabel*           statusLabel;
};

class Receiver : public QDialog{
    Q_OBJECT
    public:
        Receiver(QWidget *parent = 0);
        QByteArray processPendingDatagrams();
    private:
        QLabel      *statusLabel;
        QPushButton *quitButton;
        QUdpSocket  *udpSocket;
};

#endif
